import Vue from 'vue'
import VCharts from 'v-charts'
import App from './App.vue'
import Bus from './utils/eventBus.js';
import {initRouter} from './router'
import Antd from 'ant-design-vue'
import Viser from 'viser-vue'
import './excel/Blob'
import './excel/Export2Excel'
import '@/mock'
import store from './store'
import 'animate.css/source/animate.css'
import 'ant-design-vue/dist/antd.css';
import Plugins from '@/plugins'
import {initI18n} from '@/utils/i18n'
import bootstrap from '@/bootstrap'
import echarts from 'echarts'
const router = initRouter(store.state.setting.asyncRoutes)
const i18n = initI18n('CN', 'US')
const {Form} = Antd;
bootstrap({router, store, i18n})

Vue.prototype.$echarts = echarts
Vue.prototype.$eventBus = Bus
Vue.prototype.$form = Form
Vue.config.productionTip = false
Vue.use(Viser)
Vue.use(Antd)
Vue.use(Plugins)
Vue.use(VCharts);
new Vue({
  router,
  store,
  i18n,
  render: h => h(App),
}).$mount('#app')
